<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <title>创建word文档</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="no-cache"/>
    <meta http-equiv="Expires" content="-1"/>
    <meta http-equiv="Cache-Control" content="no-cache"/>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
          name="viewport">
    <meta content="telephone=no" name="format-detection"/>
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <script src="https://file.ggxqce.com/web/vue.min.js"></script>
    <style>
        .table-my-box {
            padding: 10px 15px;
            background: #f7f8fa;
        }

        .table-my {
            width: 100%;
        }

        .table-my .title {
            width: 60px;
            height: 34px;
            line-height: 34px;
            text-align: left;
        }

        .table-my .value {
            padding: 5px 0;
        }

        .webuploader-container {
            width: 60px;
            position: relative;
            margin-top: 15px;
        }

        #divUploadedFiles {
            padding: 20px 10px;
            border: 1px dashed #ddd;
            width: 50%;
        }

        .webuploader-container {
            position: relative;
            /* margin-top: 15px; */
            height: 32px;
            margin-top: -9px;
        }

        .divUploadedFiles {
            width: 480px;
            float: left;
        }

        .divUploadedFiles .fj-tanzhongStyle {
            float: left;
            width: 300px;
            margin-top: 2px;
            overflow: hidden;
        }

        .delfile {
            cursor: pointer;
            margin-left: 5px;
        }

        .webuploader-pick {
            background: url(/dist/img/fjT1.png) no-repeat 5px center;
            display: block;
            padding: 0 4px;
            height: 22px;
            line-height: 22px;
            padding-left: 15px;
            margin: 0 auto;
            width: 79px;
            margin-top: 13px;
            border-radius: 4px;
        }
        table{
            border:none;
        }
        .webuploader-pick-hover {
            color: #fff !important;
            background: url(/dist/img/fjT2.png) no-repeat 5px center;
            background-color: #0F6099;

        }

        #divUploadedFiles {
            /*padding: 4px;*/
            padding-bottom: 0;
            overflow: hidden;
        }

    </style>
</head>
<body>
<section class="content" id="app" v-cloak>
    <!--<div class="box-body no-padding  iframeH" style="overflow: auto;background: #fff;">-->

    <!--</div>-->


</section>

<!--JQ-->
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="/dist/plugins/scroll/myScroll.js"></script>
<!--框架已定义 JS-->
<!--oa自定义  JS-->
<script src="/dist/js/oaApp.js"></script>

<script type="text/javascript" src="/dist/plugins/lhgdialog/lhgdialog.min.js?self=true"></script>
<script>
    $(function () {
        $("body").on("click", ".lineOne,.lineTwo", function (e) {
            if ($(".div-td-content-more").is(":hidden")) {
                var text = $(this).text();
                if (text != "") {
                    text = "<i></i>" + text;
                    $(".div-td-content-more").html(text).css({
                        "width": $(this).outerWidth() + "px",
                        "left": $(this).offset().left,
                        "top": ($(this).offset().top + $(this).outerHeight()) + "px"
                    }).show();
                    e.stopPropagation();
                }
            } else {
                $(".div-td-content-more").hide();
            }
        });
        $("body").on("click", ".div-td-content-more", function (e) {
            e.stopPropagation();
        });
        $("body").on("click", function () {
            $(".div-td-content-more").hide();
        });
    });
</script>
<script>
    $.ajaxSetup({
        global: true,
        type: "POST",
        cache: false,
        dataType: "json",
        contentType: 'application/json;charset=utf-8',
        beforeSend: function () {
        },
        complete: function () {

        },
        error: function (e) {
            alert('error' + e.responseText);
        }
    });
    $.extend($.wyui, {
        postMethod: function (url, data, callback, sync, id) {
            if (!id) {
                id = "#app"
            }
            $.ajax({
                url: server.ip + url,
                async: sync ? false : true,
                data: JSON.stringify(data),
                beforeSend: function () {

                },
                complete: function () {
                    setTimeout(function () {
                    }, 1000);

                },
                success: function (r) {
                    if (!r.e.code) {
                        callback(r.data.sendData);
                    } else {
                        alert(r.e.desc);
                    }
                },
                error: function (e) {
                    alert(url + e.responseText);
                }
            });
        },
    });
</script>
<!--oa自定义  JS-->
<script>
    var app = new Vue({
        el: '#app',
        data: {
            id: getUrlParamObj().id,
            source:''

        },
        methods: {
            getById: function () {
                var that = this;
                $.wyui.postMethod("/docMain/getById.json", {id: that.id}, function (r) {
                    console.log(r)
                    that. source = r.source;
                    document.write(that.source)
                });
            },
        },
        mounted: function () {
            this.getById();
        }
    });

</script>
</body>
</html>